<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		
		<script type="text/javascript">
			
			function foo(e)
			{
				// MouseEvent
				console.log(e);
							
				console.log(e.button); // 0 左键 1 滚轮 2 右键
				
				console.log("页面中坐标:"+e.clientX+","+e.clientY);
				
				console.log("屏幕中坐标:"+e.screenX+","+e.screenY);
				
			}
			
			
			document.onmousedown = foo;
			
			
		</script>
		
	</body>
</html>